#重定向
from flask import Flask,redirect,url_for
app = Flask(__name__)
@app.route('/index')
def index():
    return url_for('hello')
@app.route('/hello')
def hello():
    return 'this is hello fun'
if __name__ == '__main__':
    app.run(debug=True)